function gets(pageNum) {
    var a=$("#po_number").val();
    var b=$("#po_name").val();
    var c=$("#po_state").val();
    var d=$("#podi_hid").val();
    var e=$("#start_time").val();
    var f=$("#over_time").val();
    var g=$("#di_number").val();
    var h=$("#c_name").val();
    var i=$("#jixing").val();
    var j=$("#danwei").val();
    var k=$("#cc").val();
    var l=$("#qiye").val();
    var m=$("#shangpin").val();
    var n=$("#ruku_time").val();
    var s=$("#ruku_time1").val();
    var o=$("#dcid").val();

    var pageN = pageNum;

    $.ajax({
        url: '/myspringboot/select/findcaigoudan',
        type: 'post',
        dataType: "json",
        data:{ponumber:a,
            poname:b,
            postate:c,
            podihid:d,
            dinumber:g,
            cname:h,
            jixing1:i,
            //guige1:j,
            danwei1:j,
            ccc:k,
            qiye1:l,
            shangpin1:m,
            rukutime:n,
            dcid1:o,
            pageNum:pageN
        },

        success:function(result) {
            var list = result.data.list;
            yibu(result.data.pages,result.data.pageNum);
            $(".a").empty();
            for (i=0;i<list.length;i++) {
                //序号
                var diId = list[i].diId;
                //流水号
                var diNumer = list[i].diNumer;
                //通用名
                var diName = list[i].diName;
                //商品名
                var drugAtegory = list[i].drugAtegory;
                if (drugAtegory!=null){
                    var daName = drugAtegory.daName;

                } else {
                    var daName = "null"

                }
                //剂型
                var diForm = list[i].diForm;
                //规格
                var diSpecifications = list[i].diSpecifications;
                //单位
                var diUnit = list[i].diUnit;
                //转换系数
                var diCc = list[i].diCc;
                //生产企业
                var supplier = list[i].supplier;
                if (supplier != null) {
                    var qiye = supplier.surName;

                }else {
                    var qiye ="null"

                }
                var podiPd = list[i].podiPd;
                if (podiPd!=null){
                    var c =podiPd.podiState;
                    var d =podiPd.podiNumber;
                    var e =podiPd.podiTotal;
                } else {
                    var c ="null"
                    var d ="null"
                    var e ="null"
                }

                var v ="";
                if (c==0){
                    v="未发货";
                }
                if (c==1){
                    v="已发货";
                }
                if (c==2){
                    v="已入库";
                }
                if (c==3){
                    v="已结算";
                }

                var $tr = '<tr>'+
                    '<td>'+diId+'</td>'+
                    '<td>'+diNumer+'</td>'+
                    '<td>'+diName+'</td>'+
                    '<td>'+daName+'</td>'+
                    '<td>'+diForm+'</td>'+
                    '<td>'+diSpecifications+'</td>'+
                    '<td>'+diUnit+'</td>'+
                    '<td>'+diCc+'</td>'+
                    '<td>'+qiye+'</td>'+
                    '<td>'+d+'</td>'+
                    '<td>'+e+'</td>'+
                    '<td>'+v+'</td>'+
                    '</tr>'
                $(".a").append($tr);


            }
        }
    })
}